//
//  StatsV2ViewController.h
//  FuelLog
//
//  Created by Pure Mass Communications on 9/8/08.
//  Copyright 2008 . All rights reserved.
//
//  Placed under GPL v2 with the kind permission of Pure Mass Communications
//
//  Modified to make compile under SDK 3.1 by Olaf Greck in May 2010
//
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

#import <UIKit/UIKit.h> 
#import "PrefsV2NumericSubViewController.h"
#import "PlotV2ViewController.h"
#import "BarGraphViewController.h"
#import "QuartzView.h"


@interface StatsViewController : UITableViewController <UIAlertViewDelegate, UITextFieldDelegate> {

	NSMutableArray * preferencesPrimaryArray;
	NSMutableArray * preferencesSecondaryArray;
	NSMutableArray * preferencesTitleArray;
	PrefsNumericSubViewController  *prefsNumericSubViewController;
	PlotV2ViewController * plotV2ViewController;
	BarGraphViewController * barGraphViewController;
	NSDate *beginDate;
	NSDate *endDate;
	NSString * beginDateString;
	NSString * endDateString;
	NSString * dateString;
	
	UIBarButtonItem *doneButton;
	NSString * distanceString;
	NSString * volumeString;
	NSString * consumptionString;
	NSString * costString;
	NSString * unitCostString;
	NSString * costDistanceString;
	QuartzView *quartzView;
	
	int beginIdx;
	int endIdx;
	int fillCount;
	
}

@property(nonatomic, retain) NSMutableArray * preferencesPrimaryArray;
@property(nonatomic, retain) NSMutableArray * preferencesSecondaryArray;
@property(nonatomic, retain) NSMutableArray * preferencesTitleArray;
@property int beginIdx;
@property int endIdx;
@property int fillCount;


@property (nonatomic, copy) NSDate *beginDate;
@property (nonatomic, copy) NSDate *endDate;
@property (nonatomic, copy) NSString * beginDateString;
@property (nonatomic, copy) NSString * endDateString;
@property (nonatomic, copy) NSString * dateString;


@property(nonatomic, retain) UIBarButtonItem *doneButton;  

@property(nonatomic, retain) NSString * distanceString;
@property(nonatomic, retain) NSString * volumeString;
@property(nonatomic, retain) NSString * consumptionString;
@property(nonatomic, retain) NSString * costString;
@property(nonatomic, retain) NSString * unitCostString;
@property(nonatomic, retain) NSString * costDistanceString;

- (IBAction)done:(id)sender;
/*
-(void)showErrorText:(NSString *)errorText;
- (void)reallyDelete;
- (void)setDateValue:(NSDate *)anotherDate;
- (void)updateDpf;
- (void)updateUnitCost;
 */
- (void)setBoxes;

@end
